-- GENERATED SPELL FOR [Spitelash Screamer] --


function spell0_6193(pUnit, Event) --@Deafening Screech,n/a--
pUnit:FullCastSpellOnTarget(3589,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6193', 8306, 1)
end

function spell1_6193(pUnit, Event) --@Polymorph Backfire,n/a--
pUnit:FullCastSpellOnTarget(28406,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6193', 8262, 1)
end

function Sorts_6193(pUnit, Event)
local choix_sorts_6193 = math.random(0, 1)
if choix_sorts_6193 == 0 then
pUnit:RegisterEvent('spell0_6193', 1, 1)
end
if choix_sorts_6193 == 1 then
pUnit:RegisterEvent('spell1_6193', 1, 1)
end
end

function mob6193_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6193', math.random(1500, 3000), 1)
end

function mob6193_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6193_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6193_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6193, 1, 'mob6193_Action')
RegisterUnitEvent(6193, 2, 'mob6193_Leave')
RegisterUnitEvent(6193, 3, 'mob6193_Kill')
RegisterUnitEvent(6193, 4, 'mob6193_Die')
